package com.bwie.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bwie.demo.model.Details;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * 化妆品详情类接口
 * @author yp
 * @Date 2020-11-30-9:16
 */
@Mapper
public interface DetailsMapper extends BaseMapper<Details> {

    @Update("update details set role = 1 where id = #{id}")
    void updateRole(Integer id);
}
